﻿@using HrEFCore;
@using HrEFCore.Models;
@model EMRViewXG
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>My CSHTML Page</title>
    <script src="~/javascript/comm/comm.js"></script>
    <script src="~/javascript/comm/list.js"></script>
    <script src="~/javascript/calendar-ch.js"></script>
    <script src="~/javascript/jquery-1.7.2.js"></script>
    <script src="~/javascript/locate.js"></script>
    <script src="~/javascript/select.js"></script>
    <script src="~/javascript/time.js"></script>

    <link href="~/aa/element-ui/lib/theme-chalk/index.css" rel="stylesheet" />
    <script src="~/aa/vue/dist/vue.js"></script>
    <script src="~/aa/element-ui/lib/index.js"></script>

    <style>
        /* CSS样式 */
        .s {
            color: red;
        }
        .hidden {
            display: none;
        }
    </style>
    <style type="text/css">
        body {
            background: rgb(253,244,227);
        }

        .TD_STYLE1 {
            background: #E6DDCE;
            /* color:white; */
        }

        .TD_STYLE2 {
            background: rgb(253,244,227);
        }

        .INPUT_STYLE2 {
            background: rgb(253,244,227);
        }
    </style>
    @* 日期每过一秒更新一次 *@
    <script>
        setInterval(() => {
            var now = new Date();
            document.getElementsByName("RegistTime")[0].value = now.getFullYear() + "-" +
                (now.getMonth() + 1).toString().padStart(2, "0") + "-" +
                now.getDate().toString().padStart(2, "0") + " " +
                now.getHours().toString().padStart(2, "0") + ":" +
                now.getMinutes().toString().padStart(2, "0") + ":" +
                now.getSeconds().toString().padStart(2, "0");
        }, 1000);
    </script>

</head>
<body>
    <div id="EMRapp">
        <form action="/EMR/EMRUpdate" method="post">
            <table width="100%">
                <tr>
                    <td>
                        <font color="black">您正在做的业务是：人力资源--招聘管理--职位发布管理--职位发布变更 </font>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <input type="submit" value="提交" class="BUTTON_STYLE1">
                        <input type="reset" value="清除" class="BUTTON_STYLE1"> 
                    </td>
                </tr>
            </table>
            <table width="100%" border="1" cellpadding=0 cellspacing=1
                   bordercolorlight=#848284 bordercolordark=#eeeeee
                   class="TABLE_STYLE1 table-bordered">

                @* width="100%" border="1" cellpadding=3 cellspacing=1
                bordercolorlight=#848284 bordercolordark=#eeeeee
                class="TABLE_STYLE1 table-bordered" *@
                <tr class="hidden">
                    <td width="19%" class="TD_STYLE1">
                        @* 主键编号 *@
                        @Html.LabelFor(e=>e.MreId)
                    </td>
                    <td width="81%" class="TD_STYLE2" readonly>
                        @Html.TextBoxFor(e=>e.MreId,new{ @readonly = "readonly"})
                        @Html.TextBoxFor(e=>e.FirstKindId,new{ @readonly = "readonly"})
                        @Html.TextBoxFor(e=>e.SecondKindId,new{ @readonly = "readonly"})
                        @Html.TextBoxFor(e=>e.ThirdKindId,new{ @readonly = "readonly"})
                        @Html.TextBoxFor(e=>e.MajorKindId,new{ @readonly = "readonly"})
                        @Html.TextBoxFor(e=>e.MajorId,new{ @readonly = "readonly"})
                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1" width="11%">
                        I级机构
                    </td>
                    <td width="14%" class="TD_STYLE2">
                        @Html.TextBoxFor(e => e.FirstKindName, new { @class="form-control", @readonly = "readonly" })
                        <span class="s">@Html.ValidationMessageFor(e => e.FirstKindName)</span>
                    </td>
                    <td width="11%" class="TD_STYLE1">
                        II级机构
                    </td>
                    <td width="14%" class="TD_STYLE2">
                        @Html.TextBoxFor(e => e.SecondKindName, new { @class="form-control" , @readonly = "readonly"})
                        <span class="s">@Html.ValidationMessageFor(e => e.SecondKindName)</span>
                    </td>
                    <td width="11%" class="TD_STYLE1">
                        III级机构
                    </td>
                    <td class="TD_STYLE2">
                        @Html.TextBoxFor(e => e.ThirdKindName, new {@class="form-control" , @readonly = "readonly"})
                        <span class="s">@Html.ValidationMessageFor(e => e.ThirdKindName)</span>
                    </td>
                    <td width="11%" class="TD_STYLE1">
                        招聘类型
                    </td>
                    <td class="TD_STYLE2" colspan="2">
                        @Html.DropDownListFor(e => e.EngageType, new SelectList(new List<string> { "校园招聘", "社会招聘" }), "请选择", new { @class = "form-control" })
                        <span class="s">@Html.ValidationMessageFor(e => e.EngageType)</span>
                    </td>


                </tr>


                <tr>
                    <td class="TD_STYLE1">
                        职位分类
                    </td>
                    <td class="TD_STYLE2">
                        @Html.TextBoxFor(e => e.MajorKindName, new { @class="form-control" , @readonly = "readonly"})
                        <span class="s">@Html.ValidationMessageFor(e => e.MajorKindName)</span>
                    </td>
                    <td class="TD_STYLE1">
                        职位名称
                    </td>
                    <td class="TD_STYLE2">
                        @Html.TextBoxFor(e => e.MajorName, new { @class="form-control", @readonly = "readonly" })
                        <span class="s">@Html.ValidationMessageFor(e => e.MajorName)</span>
                    </td>
                    <td class="TD_STYLE1">
                        招聘人数
                    </td>
                    <td class="TD_STYLE2">
                        @Html.TextBoxFor(e => e.HumanAmount, new { @class="form-control" })
                        <span class="s">@Html.ValidationMessageFor(e => e.HumanAmount)</span>
                    </td>
                    <td class="TD_STYLE1">
                        截止日期
                    </td>
                    <td class="TD_STYLE2">
                        <el-date-picker v-model="value1"
                                        type="date" name="Deadline"
                                        placeholder="选择日期">
                        </el-date-picker>
                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1">
                        变更人
                    </td>
                    <td class="TD_STYLE2">
                        @Html.TextBoxFor(e => e.Register, new { @class="form-control" })
                        <span class="s">@Html.ValidationMessageFor(e => e.Register)</span>
                    </td>
                    <td class="TD_STYLE1">
                        变更时间
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="RegistTime" class="form-control" value="@DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")" readonly="readonly" />

                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1">
                        职位描述
                    </td>
                    <td class="TD_STYLE2" colspan="8">
                        @Html.TextBoxFor(e => e.MajorDescribe, new { @class="form-control" })
                        <span class="s">@Html.ValidationMessageFor(e => e.MajorDescribe)</span>
                    </td>



                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        招聘要求
                    </td>
                    <td class="TD_STYLE2" colspan="8">
                        @Html.TextBoxFor(e => e.EngageRequired, new { @class = "form-control"})
                        <span class="s">@Html.ValidationMessageFor(e => e.EngageRequired)</span>
                    </td>
                </tr>
            </table>
        </form>
        <script>
            new Vue({
                el: '#EMRapp',
                data() {
                    return {
                        value1: ""
                    }
                },
            })
        </script>
    </div>

</body>
</html>